package com.itany.conf;

import org.apache.solr.client.solrj.impl.HttpSolrClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SolrConfig {

    @Bean
    public HttpSolrClient solrClient(){
        return new HttpSolrClient.Builder("http://localhost:8080/solr/myusers")
                   .withSocketTimeout(10000)
                   .withConnectionTimeout(10000)
                   .build();
    }

}
